<template>
	<view class="searchFilter">
		<luyj-select-lay
			class="ipt"
			:value="filterValue.value"
			name="name"
			placeholder="请选择检测点"
			:options="datalist"
			@selectitem="selectitem"
		/>
	</view>
</template>

<script>
import luyjSelectLay from '@/components/luyj-select-lay/luyj-select-lay.vue';
export default {
	components: {
		luyjSelectLay
	},
	name: 'searchFilter',
	data() {
		return {
			filterValue: {
				label: '全部',
				value: 0
			},
			datalist: [
				{
					label: 'label1',
					value: 'value1'
				},
				{
					label: 'label2',
					value: 'value2'
				},
				{
					label: 'label3',
					value: 'value3'
				}
			]
		};
	},
	methods: {
		selectitem(e) {
			this.filterValue = this.datalist[e];
			this.$emit('select', this.datalist[e]);
		}
	}
};
</script>

<style lang="scss">
.searchFilter{
	padding: 0 24rpx;
}
</style>
